package net.longjin.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import net.longjin.entity.Student;
import net.longjin.service.StudentService;
import org.springframework.stereotype.Service;

/**
 * 描述:StudentServiceImpl
 *
 * @author 何志鹏
 * @ClassName:StudentServiceImpl
 * @create 2020-11-17 17:10
 * Version 1.0
 */
@Service
public class StudentServiceImpl implements StudentService {


    /**
     * 获取学生信息
     *
     * @return
     */
    @Override
    public JSONObject getInfos() {
        Student student = new Student();
        student.setId(1L);
        student.setName("何志鹏");
        student.setAge(30);
        return JSONObject.parseObject(JSON.toJSONString(student));
    }
}
